<?php if (!defined('THINK_PATH')) exit();?>
<div class="pageContent">


	<form method="post" action="__URL__/update/navTabId/__MODULE__" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="user_id" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>
		<input type="hidden" name="id" value="<?php echo ($vo["id"]); ?>" />
		<div class="pageFormContent" layoutH="58">
			
			<div class="unit">
				<label>网站名称：</label>
				<input type="text" class="required" size="30" maxlength="20" name="site_name" value="<?php echo ($vo["site_name"]); ?>"/>
			</div>

			<div class="unit">
				<label>网站地址：</label>
				<input type="text" class="required" size="30" maxlength="20" name="site_link" value="<?php echo ($vo["site_link"]); ?>" />&nbsp;<font style="color:red;">(例如：www.example.com)</font>
			</div>

			<div class="unit">
				<label>登录密码：</label>
				<input type="password" class="alphanumeric" name="password" size="30" maxlength="20"/>&nbsp;<font style="color:red;">输入才会更新密码</font>
			</div>

			<div class="unit">
				<label>网站描述：</label>
				<textarea name="site_desc" rows="3" cols="57"><?php echo ($vo["site_desc"]); ?></textarea>
			</div>

			<div class="unit">
				<label>网站类型：</label>
				<select name="cat_id">
				<?php if(is_array($cat_list)): $i = 0; $__LIST__ = $cat_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><option value="<?php echo ($li["id"]); ?>"<?php if($li['id']==$vo['cat_id']){echo ' selected="selected"';} ?>><?php echo ($li["cat_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
				</select>
			</div>

			<div class="unit">
				<label>QQ：</label>
				<input type="text" class="alphanumeric" size="30" maxlength="20" name="qq" value="<?php echo ($vo["qq"]); ?>"/>
			</div>

			<div class="unit">
				<label>网站PR值：</label>
				<input type="text" class="alphanumeric" size="30" maxlength="10" name="site_pr" value="<?php echo ($vo["site_pr"]); ?>"/>
			</div>

			<div class="unit">
				<label>要求对方PR值：</label>
				<input type="text" class="alphanumeric" size="30" maxlength="10" name="site_pr2" value="<?php echo ($vo["site_pr2"]); ?>"/>
			</div>

			<div class="unit">
				<label>状态：</label>
				<select class="small bLeft"  name="status">
					<option <?php if(($vo["status"]) == "1"): ?>selected<?php endif; ?> value="1">启用</option>
					<option <?php if(($vo["status"]) == "0"): ?>selected<?php endif; ?> value="0">禁用</option>
				</select>
			</div>
			
			<div class="unit">
				<label>其他要求说明：</label>
				<textarea name="site_req" rows="3" cols="57"><?php echo ($vo["site_req"]); ?></textarea>
			</div>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>